<!--
 * @Author: liuyonghu
 * @Date: 2021-11-19 17:20:08
 * @LastEditTime: 2021-11-19 17:24:36
 * @LastEditors: liuyonghu
 * @Description: 
 * @FilePath: /demos/document&window.html
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      window.onload = () => {
        console.log('window.onload',document.readyState);
      };
      document.addEventListener('onload', () => {
        console.log('document.onload');
      });
      document.onload = () => {
        console.log('document.onload');
      };
    </script>
  </body>
</html>
